import 'package:flutter/material.dart';
import '../Models/mock_data.dart';
import '../Pages/TipsWidget.dart';
import '../Models/FontSize.dart';
class Tips extends StatefulWidget {


  @override
  _TipsState createState() => _TipsState();
}

class _TipsState extends State<Tips>
    with SingleTickerProviderStateMixin {
  TabController tabController;


  @override
  void dispose() {
    super.dispose();
    this.tabController.dispose();
  }

  @override
  Widget build(BuildContext context) {
    return new MaterialApp(
      title: 'Remind',
      home: new Scaffold(
        /*appBar: new AppBar(
          title: new Text('设置新的提醒'),
        ),*/
        body: SingleChildScrollView(
          child: Column(
              children: <Widget>[
                  TipsCard(data: TipsCardData1),
                  TipsCard(data: TipsCardData2),
                ],
          ),

        ),
        persistentFooterButtons: <Widget>[
          FlatButton(
            child: Text(
              "返回",
              style: TextStyle(fontSize: oneSize),
            ),
            onPressed: () {
              Navigator.pop(context);
            },
          ),
        ],
      ),
      theme: ThemeData(
        primarySwatch: Colors.green,
      ),
    );
      //return TipsCard(data:TipsCardData);
  }
}
